using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class OpenAppInfo : GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<OpenAppInfo, OpenAppInfo.Builder>
		{
			private bool resultIsReadOnly;
			private OpenAppInfo result;
			protected override OpenAppInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override OpenAppInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override OpenAppInfo DefaultInstanceForType
			{
				get
				{
					return OpenAppInfo.DefaultInstance;
				}
			}
			public string AppID
			{
				get
				{
					return this.result.AppID;
				}
				set
				{
					this.SetAppID(value);
				}
			}
			public string AppName
			{
				get
				{
					return this.result.AppName;
				}
				set
				{
					this.SetAppName(value);
				}
			}
			public string AppDescription
			{
				get
				{
					return this.result.AppDescription;
				}
				set
				{
					this.SetAppDescription(value);
				}
			}
			public string AppIconUrl
			{
				get
				{
					return this.result.AppIconUrl;
				}
				set
				{
					this.SetAppIconUrl(value);
				}
			}
			public string AppStoreUrl
			{
				get
				{
					return this.result.AppStoreUrl;
				}
				set
				{
					this.SetAppStoreUrl(value);
				}
			}
			public uint AppVersion
			{
				get
				{
					return this.result.AppVersion;
				}
				set
				{
					this.SetAppVersion(value);
				}
			}
			public string AppWatermarkUrl
			{
				get
				{
					return this.result.AppWatermarkUrl;
				}
				set
				{
					this.SetAppWatermarkUrl(value);
				}
			}
			public string AndroidPackageName
			{
				get
				{
					return this.result.AndroidPackageName;
				}
				set
				{
					this.SetAndroidPackageName(value);
				}
			}
			public string AndroidSignature
			{
				get
				{
					return this.result.AndroidSignature;
				}
				set
				{
					this.SetAndroidSignature(value);
				}
			}
			public Builder()
			{
				this.result = OpenAppInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(OpenAppInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private OpenAppInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					OpenAppInfo other = this.result;
					this.result = new OpenAppInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override OpenAppInfo.Builder Clear()
			{
				this.result = OpenAppInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override OpenAppInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new OpenAppInfo.Builder(this.result);
				}
				return new OpenAppInfo.Builder().MergeFrom(this.result);
			}
			public override OpenAppInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override OpenAppInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is OpenAppInfo)
				{
					return this.MergeFrom((OpenAppInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override OpenAppInfo.Builder MergeFrom(OpenAppInfo other)
			{
				return this;
			}
			public override OpenAppInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override OpenAppInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(OpenAppInfo._openAppInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = OpenAppInfo._openAppInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 34u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasAppID = input.ReadString(ref this.result.appID_);
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasAppName = input.ReadString(ref this.result.appName_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasAppDescription = input.ReadString(ref this.result.appDescription_);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasAppIconUrl = input.ReadString(ref this.result.appIconUrl_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 48u)
						{
							if (num3 == 42u)
							{
								this.result.hasAppStoreUrl = input.ReadString(ref this.result.appStoreUrl_);
								continue;
							}
							if (num3 == 48u)
							{
								this.result.hasAppVersion = input.ReadUInt32(ref this.result.appVersion_);
								continue;
							}
						}
						else
						{
							if (num3 == 58u)
							{
								this.result.hasAppWatermarkUrl = input.ReadString(ref this.result.appWatermarkUrl_);
								continue;
							}
							if (num3 == 66u)
							{
								this.result.hasAndroidPackageName = input.ReadString(ref this.result.androidPackageName_);
								continue;
							}
							if (num3 == 74u)
							{
								this.result.hasAndroidSignature = input.ReadString(ref this.result.androidSignature_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public OpenAppInfo.Builder SetAppID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppID = true;
				this.result.appID_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppID()
			{
				this.PrepareBuilder();
				this.result.hasAppID = false;
				this.result.appID_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAppName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppName = true;
				this.result.appName_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppName()
			{
				this.PrepareBuilder();
				this.result.hasAppName = false;
				this.result.appName_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAppDescription(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppDescription = true;
				this.result.appDescription_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppDescription()
			{
				this.PrepareBuilder();
				this.result.hasAppDescription = false;
				this.result.appDescription_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAppIconUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppIconUrl = true;
				this.result.appIconUrl_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppIconUrl()
			{
				this.PrepareBuilder();
				this.result.hasAppIconUrl = false;
				this.result.appIconUrl_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAppStoreUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppStoreUrl = true;
				this.result.appStoreUrl_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppStoreUrl()
			{
				this.PrepareBuilder();
				this.result.hasAppStoreUrl = false;
				this.result.appStoreUrl_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAppVersion(uint value)
			{
				this.PrepareBuilder();
				this.result.hasAppVersion = true;
				this.result.appVersion_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppVersion()
			{
				this.PrepareBuilder();
				this.result.hasAppVersion = false;
				this.result.appVersion_ = 0u;
				return this;
			}
			public OpenAppInfo.Builder SetAppWatermarkUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppWatermarkUrl = true;
				this.result.appWatermarkUrl_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAppWatermarkUrl()
			{
				this.PrepareBuilder();
				this.result.hasAppWatermarkUrl = false;
				this.result.appWatermarkUrl_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAndroidPackageName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAndroidPackageName = true;
				this.result.androidPackageName_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAndroidPackageName()
			{
				this.PrepareBuilder();
				this.result.hasAndroidPackageName = false;
				this.result.androidPackageName_ = "";
				return this;
			}
			public OpenAppInfo.Builder SetAndroidSignature(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAndroidSignature = true;
				this.result.androidSignature_ = value;
				return this;
			}
			public OpenAppInfo.Builder ClearAndroidSignature()
			{
				this.PrepareBuilder();
				this.result.hasAndroidSignature = false;
				this.result.androidSignature_ = "";
				return this;
			}
		}
		public const int AppIDFieldNumber = 1;
		public const int AppNameFieldNumber = 2;
		public const int AppDescriptionFieldNumber = 3;
		public const int AppIconUrlFieldNumber = 4;
		public const int AppStoreUrlFieldNumber = 5;
		public const int AppVersionFieldNumber = 6;
		public const int AppWatermarkUrlFieldNumber = 7;
		public const int AndroidPackageNameFieldNumber = 8;
		public const int AndroidSignatureFieldNumber = 9;
		private static readonly OpenAppInfo defaultInstance;
		private static readonly string[] _openAppInfoFieldNames;
		private static readonly uint[] _openAppInfoFieldTags;
		private bool hasAppID;
		private string appID_ = "";
		private bool hasAppName;
		private string appName_ = "";
		private bool hasAppDescription;
		private string appDescription_ = "";
		private bool hasAppIconUrl;
		private string appIconUrl_ = "";
		private bool hasAppStoreUrl;
		private string appStoreUrl_ = "";
		private bool hasAppVersion;
		private uint appVersion_;
		private bool hasAppWatermarkUrl;
		private string appWatermarkUrl_ = "";
		private bool hasAndroidPackageName;
		private string androidPackageName_ = "";
		private bool hasAndroidSignature;
		private string androidSignature_ = "";
		private int memoizedSerializedSize = -1;
		public static OpenAppInfo DefaultInstance
		{
			get
			{
				return OpenAppInfo.defaultInstance;
			}
		}
		public override OpenAppInfo DefaultInstanceForType
		{
			get
			{
				return OpenAppInfo.DefaultInstance;
			}
		}
		protected override OpenAppInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string AppID
		{
			get
			{
				return this.appID_;
			}
		}
		public string AppName
		{
			get
			{
				return this.appName_;
			}
		}
		public string AppDescription
		{
			get
			{
				return this.appDescription_;
			}
		}
		public string AppIconUrl
		{
			get
			{
				return this.appIconUrl_;
			}
		}
		public string AppStoreUrl
		{
			get
			{
				return this.appStoreUrl_;
			}
		}
		public uint AppVersion
		{
			get
			{
				return this.appVersion_;
			}
		}
		public string AppWatermarkUrl
		{
			get
			{
				return this.appWatermarkUrl_;
			}
		}
		public string AndroidPackageName
		{
			get
			{
				return this.androidPackageName_;
			}
		}
		public string AndroidSignature
		{
			get
			{
				return this.androidSignature_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasAppVersion;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasAppID)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.AppID);
				}
				if (this.hasAppName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.AppName);
				}
				if (this.hasAppDescription)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.AppDescription);
				}
				if (this.hasAppIconUrl)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.AppIconUrl);
				}
				if (this.hasAppStoreUrl)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.AppStoreUrl);
				}
				if (this.hasAppVersion)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.AppVersion);
				}
				if (this.hasAppWatermarkUrl)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.AppWatermarkUrl);
				}
				if (this.hasAndroidPackageName)
				{
					num += CodedOutputStream.ComputeStringSize(8, this.AndroidPackageName);
				}
				if (this.hasAndroidSignature)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.AndroidSignature);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private OpenAppInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] openAppInfoFieldNames = OpenAppInfo._openAppInfoFieldNames;
			if (this.hasAppID)
			{
				output.WriteString(1, openAppInfoFieldNames[3], this.AppID);
			}
			if (this.hasAppName)
			{
				output.WriteString(2, openAppInfoFieldNames[5], this.AppName);
			}
			if (this.hasAppDescription)
			{
				output.WriteString(3, openAppInfoFieldNames[2], this.AppDescription);
			}
			if (this.hasAppIconUrl)
			{
				output.WriteString(4, openAppInfoFieldNames[4], this.AppIconUrl);
			}
			if (this.hasAppStoreUrl)
			{
				output.WriteString(5, openAppInfoFieldNames[6], this.AppStoreUrl);
			}
			if (this.hasAppVersion)
			{
				output.WriteUInt32(6, openAppInfoFieldNames[7], this.AppVersion);
			}
			if (this.hasAppWatermarkUrl)
			{
				output.WriteString(7, openAppInfoFieldNames[8], this.AppWatermarkUrl);
			}
			if (this.hasAndroidPackageName)
			{
				output.WriteString(8, openAppInfoFieldNames[0], this.AndroidPackageName);
			}
			if (this.hasAndroidSignature)
			{
				output.WriteString(9, openAppInfoFieldNames[1], this.AndroidSignature);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasAppID)
			{
				num ^= this.appID_.GetHashCode();
			}
			if (this.hasAppName)
			{
				num ^= this.appName_.GetHashCode();
			}
			if (this.hasAppDescription)
			{
				num ^= this.appDescription_.GetHashCode();
			}
			if (this.hasAppIconUrl)
			{
				num ^= this.appIconUrl_.GetHashCode();
			}
			if (this.hasAppStoreUrl)
			{
				num ^= this.appStoreUrl_.GetHashCode();
			}
			if (this.hasAppVersion)
			{
				num ^= this.appVersion_.GetHashCode();
			}
			if (this.hasAppWatermarkUrl)
			{
				num ^= this.appWatermarkUrl_.GetHashCode();
			}
			if (this.hasAndroidPackageName)
			{
				num ^= this.androidPackageName_.GetHashCode();
			}
			if (this.hasAndroidSignature)
			{
				num ^= this.androidSignature_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			OpenAppInfo openAppInfo = object_0 as OpenAppInfo;
			return openAppInfo != null && (this.hasAppID == openAppInfo.hasAppID && (!this.hasAppID || this.appID_.Equals(openAppInfo.appID_))) && (this.hasAppName == openAppInfo.hasAppName && (!this.hasAppName || this.appName_.Equals(openAppInfo.appName_))) && (this.hasAppDescription == openAppInfo.hasAppDescription && (!this.hasAppDescription || this.appDescription_.Equals(openAppInfo.appDescription_))) && (this.hasAppIconUrl == openAppInfo.hasAppIconUrl && (!this.hasAppIconUrl || this.appIconUrl_.Equals(openAppInfo.appIconUrl_))) && (this.hasAppStoreUrl == openAppInfo.hasAppStoreUrl && (!this.hasAppStoreUrl || this.appStoreUrl_.Equals(openAppInfo.appStoreUrl_))) && (this.hasAppVersion == openAppInfo.hasAppVersion && (!this.hasAppVersion || this.appVersion_.Equals(openAppInfo.appVersion_))) && (this.hasAppWatermarkUrl == openAppInfo.hasAppWatermarkUrl && (!this.hasAppWatermarkUrl || this.appWatermarkUrl_.Equals(openAppInfo.appWatermarkUrl_))) && (this.hasAndroidPackageName == openAppInfo.hasAndroidPackageName && (!this.hasAndroidPackageName || this.androidPackageName_.Equals(openAppInfo.androidPackageName_))) && (this.hasAndroidSignature == openAppInfo.hasAndroidSignature && (!this.hasAndroidSignature || this.androidSignature_.Equals(openAppInfo.androidSignature_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppID", this.hasAppID, this.appID_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppName", this.hasAppName, this.appName_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppDescription", this.hasAppDescription, this.appDescription_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppIconUrl", this.hasAppIconUrl, this.appIconUrl_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppStoreUrl", this.hasAppStoreUrl, this.appStoreUrl_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppVersion", this.hasAppVersion, this.appVersion_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AppWatermarkUrl", this.hasAppWatermarkUrl, this.appWatermarkUrl_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AndroidPackageName", this.hasAndroidPackageName, this.androidPackageName_, writer);
			GeneratedMessageLite<OpenAppInfo, OpenAppInfo.Builder>.PrintField("AndroidSignature", this.hasAndroidSignature, this.androidSignature_, writer);
		}
		public static OpenAppInfo ParseFrom(byte[] data)
		{
			return OpenAppInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private OpenAppInfo MakeReadOnly()
		{
			return this;
		}
		public static OpenAppInfo.Builder CreateBuilder()
		{
			return new OpenAppInfo.Builder();
		}
		public override OpenAppInfo.Builder ToBuilder()
		{
			return OpenAppInfo.CreateBuilder(this);
		}
		public override OpenAppInfo.Builder CreateBuilderForType()
		{
			return new OpenAppInfo.Builder();
		}
		public static OpenAppInfo.Builder CreateBuilder(OpenAppInfo prototype)
		{
			return new OpenAppInfo.Builder(prototype);
		}
		static OpenAppInfo()
		{
			OpenAppInfo.defaultInstance = new OpenAppInfo().MakeReadOnly();
			OpenAppInfo._openAppInfoFieldNames = new string[]
			{
				"AndroidPackageName",
				"AndroidSignature",
				"AppDescription",
				"AppID",
				"AppIconUrl",
				"AppName",
				"AppStoreUrl",
				"AppVersion",
				"AppWatermarkUrl"
			};
			OpenAppInfo._openAppInfoFieldTags = new uint[]
			{
				66u,
				74u,
				26u,
				10u,
				34u,
				18u,
				42u,
				48u,
				58u
			};
			object.ReferenceEquals(micromsg.Proto.OpenAppInfo.Descriptor, null);
		}
	}
}
